/*
package cn.touna.jss.modules.credit.service.impl;

import cn.touna.jss.modules.credit.entity.IntfConfEntity;
import cn.touna.jss.modules.credit.entity.IntfConfEntityExample;
import cn.touna.jss.modules.credit.mapper.IntfConfEntityMapper;
import cn.touna.jss.modules.credit.service.CreditConfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.utils.CollectionUtils;

import java.utils.List;

@Service
public class CreditConfServiceImpl implements CreditConfService {

    @Autowired
    private IntfConfEntityMapper intfConfEntityMapper;

    @Override
    public IntfConfEntity queryInfConf(IntfConfEntity record) {
        IntfConfEntityExample intfConfEx = new IntfConfEntityExample();
        intfConfEx.or().andServiceNameEqualTo(record.getServiceName())
                .andStatusEqualTo(true)
                .andMethodNameEqualTo(record.getMethodName());
        List<IntfConfEntity> intfConfList = intfConfEntityMapper.selectByExample(intfConfEx);
        return CollectionUtils.isEmpty(intfConfList) ? null : intfConfList.get(0);
    }

    @Override
    public List<IntfConfEntity> queryAllInfConf() {
        IntfConfEntityExample intfConfEx = new IntfConfEntityExample();
        intfConfEx.or().andStatusEqualTo(true);
        List<IntfConfEntity> intfConfList = intfConfEntityMapper.selectByExample(intfConfEx);
        return intfConfList;
    }
}
*/
